package com.gitee.wsl.api

import com.gitee.wsl.base.Overlap
import com.gitee.wsl.ext.base.overlap


interface IntRangeAble {
    val range:IntRange
}

fun IntRangeAble.overlap(target: IntRange): Overlap = this.range.overlap(target)

fun IntRangeAble.overlap(target: IntRangeAble): Overlap = this.range.overlap(target.range)